package com.fengniu.ejb.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE, region = "/entity/Content2Category", include = "all")
@Table(name = "Content2CategoryTable", schema = "FENGNIU", uniqueConstraints = {})
public class Content2Category extends GeneRelation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7003819262759680075L;

	@ManyToOne
	Content content;

	@ManyToOne
	Category category;

	public Content getContent() {
		return content;
	}

	public void setContent(Content content) {
		this.content = content;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

}
